const mongoose = require('mongoose')

const competence = new mongoose.Schema({
    title: {
        type: String,
        required: true
    },
    url: {
        type: String,
        default: ''
    },
    auth: {
        type: Number,
        default: 1   // 1 需要权限 2 不需要权限
    }
}, {versionKey: false, timestamps: {createdAt: 'create_time', updatedAt: 'update_time'}})

module.export = mongoose.model('competence', competence)
